import request from '@/utils/request'

// 查询场站历史功率数据列表
export function listCollection(query) {
  return request({
    url: '/trendsDispatch/collection/list',
    method: 'get',
    params: query
  })
}

// 查询场站历史功率数据详细
export function getCollection(id) {
  return request({
    url: '/trendsDispatch/collection/' + id,
    method: 'get'
  })
}

// 新增场站历史功率数据
export function addCollection(data) {
  return request({
    url: '/trendsDispatch/collection',
    method: 'post',
    data: data
  })
}

// 修改场站历史功率数据
export function updateCollection(data) {
  return request({
    url: '/trendsDispatch/collection',
    method: 'put',
    data: data
  })
}

// 删除场站历史功率数据
export function delCollection(id) {
  return request({
    url: '/trendsDispatch/collection/' + id,
    method: 'delete'
  })
}

// 导出场站历史功率数据
export function exportCollection(query) {
  return request({
    url: '/trendsDispatch/collection/export',
    method: 'get',
    params: query
  })
}